<?php

// +----------------------------------------------------------------------
// | Copyright (c) 2020 All rights reserved.
// +----------------------------------------------------------------------
// | User: Simony <1362229026@qq.com>
// | wechat: Shen86579595
// +----------------------------------------------------------------------
namespace app\admin\validate;
use think\Validate;

class MemberApply extends Validate
{
    protected $rule = [
        'member_id' => 'require|number',
        'avatar' => 'require|max:100',
        'birthday' => 'require',
        'sex' => 'require|number',
        'province' => 'require|number',
        'city' => 'require|number',
        'district' => 'require|number',
        'wechat' => 'require|max:50',
        'profession' => 'require|max:50',
        'content_types' => 'require|max:100',
        'expect_object' => 'require|max:50',
        'height' => 'require|number',
        'weight' => 'require|number',
        'apply_time' => 'require|number',
        'handle_time' => 'require|number',
        'set_invite_code' => 'require|max:10',
        'state' => 'require|number',
    ];
    protected $message = [
        'nickname.require' => '昵称必须',
        'username.require' => '用户手机必须',
    ];
}